<?php
/**
 * The Template for displaying all single posts.
 *
 * @package WordPress
 * @subpackage Twenty_Eleven
 * @since Twenty Eleven 1.0
 */

get_header(); ?>

		<div id="primary" class="pagedefault">
			<div id="content" role="main" class="clearfix">

				<?php while ( have_posts() ) : the_post(); ?>

					<?php //get_template_part( 'content', 'single' ); ?>

					<?php //comments_template( '', true ); ?>
					<?php
/**
 * The template for displaying content in the single.php template
 *
 * @package WordPress
 * @subpackage Twenty_Eleven
 * @since Twenty Eleven 1.0
 */
?>
<div class="leftpage aleft release">
				<img src="<?php echo get_template_directory_uri(); ?>/images/pressroom-thumb.jpg" alt="<?php the_title();?>"/>
				<?php 
					$args = array(
							'menu'		        =>'pressroom', 
							'container'       	=> false, 
							'menu_class'		=> 'pagemenu'
							);
					echo wp_nav_menu($args); 
				?>
</div><!--/.leftpage-->
<div class="mainpage aleft">
	<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
		<header class="entry-header">
			<h1 class="entry-title">Press Room</h1><br/><br/>
			<p class="rdate"><?php the_time('M j, Y'); ?></p><br/>
			<p style=" color: #B20000; font-size: 12px;font-weight: bold;"><?php the_title();?></p><br/>
			<p style=" color: #000; font-size:11px; font-style:italic"><?php the_field('sub-headling'); ?></p><br/>
			<?php if ( 'post' == get_post_type() ) : ?>
			<div class="entry-meta">
				<?php twentyeleven_posted_on(); ?>
			</div><!-- .entry-meta -->
			<?php endif; ?>
		</header><!-- .entry-header -->
	
		<div class="entry-content">
			<div style="float:right; display:inline-block;">
			<?php if(has_post_thumbnail()) the_post_thumbnail('full');?>
			</div>	
			<?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', 'after' => '</div>' ) ); ?>
			
			<?php the_content(); ?>
			
		</div><!-- .entry-content -->
		<br/>
		<footer class="entry-meta">
			
			<hr size="1" color="#d8e8f1">

			
			<a class="rback" href="/visitsandiego/press-room/">Back To Press Room</a>
			<?php edit_post_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?>
	
			<?php if ( get_the_author_meta( 'description' ) && ( ! function_exists( 'is_multi_author' ) || is_multi_author() ) ) : // If a user has filled out their description and this is a multi-author blog, show a bio on their entries ?>
			<div id="author-info">
				<div id="author-avatar">
					<?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'twentyeleven_author_bio_avatar_size', 68 ) ); ?>
				</div><!-- #author-avatar -->
				<div id="author-description">
					<h2><?php printf( __( 'About %s', 'twentyeleven' ), get_the_author() ); ?></h2>
					<?php the_author_meta( 'description' ); ?>
					<div id="author-link">
						<a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author">
							<?php printf( __( 'View all posts by %s <span class="meta-nav">&rarr;</span>', 'twentyeleven' ), get_the_author() ); ?>
						</a>
					</div><!-- #author-link	-->
				</div><!-- #author-description -->
			</div><!-- #author-info -->
			<?php endif; ?>
		</footer><!-- .entry-meta -->
	</article><!-- #post-<?php the_ID(); ?> -->
</div>


				<?php endwhile; // end of the loop. ?>

			</div><!-- #content -->
		</div><!-- #primary -->

<?php get_footer(); ?>